import server from '../server'

// 获取分类数据
var getType = async() =>{
    let data = await server.get('/api/cate/recList')
    return data
}

// 获取颜值内容
var getYZ = async function(aa) {
    let {data} = await server.get('/api/room/list?page=1&type='+aa)
    return data
}
// 获取推荐内容
var getRecommend = async function() {
    let {data} = await server.get('/api/room/alikeList?rid=1863767&count=4')
    return data
}

// 获取热搜内容
var getTrending = async function() {
    let {data} = await server.get('/api/search/getTodayTop?count=10&isAjax=1')
    return data
}

// 获取热搜内容
var getTrendingResult = async function() {
    let {data} = await server.post('/api/search/multi')
    return data
}



export{
    getType,
    getYZ,
    getRecommend,
    getTrending,
    getTrendingResult,

}